package com.study.compose.beta.api

import com.module.compose.base.data.Response
import com.study.compose.beta.entity.BlogListData
import com.study.compose.beta.entity.History
import retrofit2.http.GET
import retrofit2.http.Path

interface BlogApi {
    @GET("wxarticle/chapters/json")
    suspend fun blogList(): Response<BlogListData>

    @GET("wxarticle/list/{blogId}/{page}/json")
    suspend fun blogHistory(
        @Path(value = "blogId", encoded = true) blogId: String,
        @Path(value = "page", encoded = true) page: String
    ): Response<History>
}